package com.aqie.appletserver.service.impl;

import com.aqie.appletserver.bean.VoiceList;
import com.aqie.appletserver.repository.VoiceListRepository;
import com.aqie.appletserver.service.IVoiceListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VoiceListService implements IVoiceListService {
    @Autowired
    private VoiceListRepository voiceListRepository;
    @Override
    public VoiceList save(VoiceList voiceList) {
        return voiceListRepository.save(voiceList);
    }

    @Override
    public List<VoiceList> lists() {
        return voiceListRepository.findAll();
    }
}
